package router

import (
	"gateway/handler/api"
	"github.com/gin-gonic/gin"
)

func Goods(v1 *gin.RouterGroup) {
	goods := v1.Group("/goods")
	{
		goods.GET("/calculateShippingFee", api.CalculateShippingFee)           // 计算运费
		goods.POST("/batchShipping", api.BatchShipping)                        // 批量发货
		goods.GET("/goodsDetail", api.GoodsDetail)                             //商品详情
		goods.GET("/goodsOrderDetail", api.GoodsOrderDetail)                   //商品订单详情
		goods.POST("/createCabinet", api.CreatCabinet)                         // 添加快递柜
		goods.POST("/updateCabinet", api.UpdateCabinet)                        // 修改快递柜
		goods.GET("/cabinetDetail", api.CabinetDetail)                         // 快递柜详情
		goods.GET("/cabinetLocationList", api.CabinetLocationList)             //位置展示
		goods.GET("/getCabinetBySizeOrAddress", api.GetCabinetBySizeOrAddress) //通过型号地址查询快递柜
	}
}
